import Node from './node';
export enum Colors {
    RED = 0,
    BLACK = 1,
}
/**
 * 红黑树助手类
 */
export class RedBlackNode<K> extends Node<K> {
    public left: RedBlackNode<K>;
    public right: RedBlackNode<K>;
    public parent: RedBlackNode<K>; // 指向父节点的引用
    public color: Colors;
    constructor(key: K) {
        super(key);
        this.color = Colors.RED; // 默认是红色的，如果是黑色的比较费劲
    }
}
